package com.travel.Controller;

import com.travel.Service.Impl.TicketServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Test")
public class TestController {
    @Autowired
    private TicketServiceImpl ticketServicel;

    @RequestMapping("/TicketPrice")
    public String TicketPrice(Integer id){
        Float res = ticketServicel.getTicketPrice(id);
        return res.toString();
    }

}
